<?php
include("application/base_class.php");
$base_obj = new BaseClass();

$process = $_REQUEST['process'];
$module = $_REQUEST['module'];

switch($module) {
	case 'Classifieds':
		switch($process) {
			case 'listClassiCat':
				$sql = "SELECT * FROM classifieds_subcategory 
						WHERE active_status='1' AND category_id = '".$_REQUEST['category']."'";
				$res = $base_obj->exec_query($sql);
				$data = $base_obj->fetch_row_all($res);
				
				for($i=0;$i<count($data);$i++) {
					$ret .= '<option value="'.$data[$i]['id'].'"  >'.stripslashes($data[$i]['sub_cat_name']).'</option>';
				}
				echo $ret;
				break;	
		}
		break;	
	
}
?>